<template>
  <nav>
    <router-link to="/">Home</router-link> |
    <router-link to="/about">About</router-link> |
    <router-link to="/nextTick">nextTick</router-link> |
    <router-link to="/component_test">组件传值</router-link> |
    <router-link to="/todolist">Todolist</router-link>
  </nav>
  <router-view/>
  <Toast />
</template>

<style>
</style>

<script>
export default {
  data() {
    return {
      msg:"这是根组件的数据"
    }
  },
  provide(){
    return {
      qwe: this.msg
    }
  }
}
</script>